/************************************************************
 * Copyright (C), 2020-2030, Wondfo. Co., Ltd.
 * FileName:        global_err.h
 * Author:			Dan Yin
 * Date:            2023-08-14
 * Description:		the global definition file for error info
 * Version:			1.0.0.0
 **********************************************************/

#ifndef GLOBAL_ERR_H
#define GLOBAL_ERR_H

#define DEF_ERROR_LEVEL_INFO         1
#define DEF_ERROR_LEVEL_WARN         2
#define DEF_ERROR_LEVEL_FAULT        3
#define DEF_ERROR_LEVEL_EXCEPTION    4

enum eumErrLevel{
    E_ERR_DEBUG,
    E_ERR_TRACE,
    E_ERR_WARNING,
    E_ERR_EXCEPTION,
    E_ERR_ERROR,
    E_ERR_CRITICAL,
    E_ERR_ALERT,
    E_ERR_EMERG,
    E_ERR_OFF
};

// Motor error
#define DEF_ERR_IAP_275                     275
#define DEF_ERR_IAP_276                     276
#define DEF_ERR_IAP_277                     277
#define DEF_ERR_IAP_278                     278
#define DEF_ERR_IAP_279                     279
#define DEF_ERR_IAP_280                     280
#define DEF_ERR_IAP_281                     281
#define DEF_ERR_IAP_282                     282
#define DEF_ERR_IAP_283                     283
#define DEF_ERR_IAP_284                     284
#define DEF_ERR_IAP_285                     285
#define DEF_ERR_IAP_286                     286
#define DEF_ERR_IAP_287                     287
#define DEF_ERR_IAP_288                     288
#define DEF_ERR_IAP_289                     289
#define DEF_ERR_IAP_290                     290
#define DEF_ERR_IAP_291                     291
#define DEF_ERR_IAP_292                     292
#define DEF_ERR_IAP_293                     293
#define DEF_ERR_IAP_294                     294
#define DEF_ERR_IAP_295                     295
#define DEF_ERR_IAP_296                     296
#define DEF_ERR_IAP_297                     297
#define DEF_ERR_IAP_298                     298
#define DEF_ERR_IAP_299                     299
#define DEF_ERR_IAP_300                     300
#define DEF_ERR_IAP_301                     301
#define DEF_ERR_IAP_302                     302
#define DEF_ERR_IAP_303                     303

// Heating
#define DEF_ERR_IAP_1025                    1025
#define DEF_ERR_IAP_1026                    1026
#define DEF_ERR_IAP_1027                    1027
#define DEF_ERR_IAP_1028                    1028
#define DEF_ERR_IAP_1029                    1029

// other errors
#define DEF_ERR_999_OTHER_END               999

#endif // GLOBAL_ERR_H
